import java.util.Scanner;
import java.util.Arrays;

/**
 *  数组排序
 */
public class ArraySorting {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        for (int i = 0 ; i < n ; i++){
            a[i] = sc.nextInt();
        }
        Arrays.sort(a,0,n);
        for (int i = 0 ; i < n ; i++){
            System.out.print(a[i]);
            System.out.print(" ");
        }
    }
}
